{% if error %}
    <div>{{ error|trans({}, 'FOSUserBundle') }}</div>
{% endif %}

<form action="{{ path("fos_user_security_check") }}" method="post">
    <input type="hidden" name="_csrf_token" value="{{ csrf_token }}" />
    <table>
        <tr>
            <th><label for="username">Login ou email</label></th>
            <th><label for="password">Mot de passe</label></th>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td><input class='input_text' type="text" id="username" name="_username" value="{{ last_username }}" placeholder="Mon pseudo ou mon email" /></td>
            <td><input class='input_text' type="password" id="password" name="_password" placeholder="Mon mot de passe" /></td>
            <td><input type="submit" id="_submit" name="_submit" value="{{ 'security.login.submit'|trans({}, 'FOSUserBundle') }}" /></td>
        </tr>
        <tr>
            <td><input type="checkbox" id="remember_me" name="_remember_me" value="on" /><label for="remember_me">Se souvenir de moi</label></td>
            <td>Mot de passe oublié</td>
        </tr>
    </table>
</form>